package la.iok.hzsvn.lewin.movie.core.movieservice.param;

import java.util.Objects;

/**
 * 带序号的名称参数
 * @since 1.1.1
 */
public class NameSequenceParam extends NameParam {
    /**
     * 序号
     */
    private Integer sequence;

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        NameSequenceParam param = (NameSequenceParam) o;
        return Objects.equals(sequence, param.sequence);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), sequence);
    }
}
